﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RapChieuPhim.DTO;
using RapChieuPhim.DAO;
using System.Collections;

namespace RapChieuPhim.BUS
{
    class CTTheLoaiBUS
    {
        public static CTTheLoaiDTO GetByID(int rap, int phim)
        {
            CTTheLoaiDAO cttlDAO = new CTTheLoaiDAO();
            return cttlDAO.GetByID(rap, phim);
        }

        public static IList GetAll()
        {
            CTTheLoaiDAO cttlDAO = new CTTheLoaiDAO();
            return cttlDAO.GetAll();
        }

        public static void Insert(CTTheLoaiDTO CTTheLoai)
        {
            CTTheLoaiDAO cttlDAO = new CTTheLoaiDAO();
            cttlDAO.Insert(CTTheLoai);
        }

        public static void Update(CTTheLoaiDTO CTTheLoai)
        {
            CTTheLoaiDAO cttlDAO = new CTTheLoaiDAO();
            cttlDAO.Update(CTTheLoai);
        }

        public static void Delete(int rap, int phim)
        {
            CTTheLoaiDAO cttlDAO = new CTTheLoaiDAO();
            cttlDAO.Delete(rap, phim);
        }
    }
}
